{extend name="public/base"}

{block name="style"}
<link rel="stylesheet" href="__STATIC__/admin/css/news.css" media="all" />

<style>
    .images img {
        display: inline-block;
        width: 100px;
    }
</style>
{/block}


{block name="main"}
<body class="childrenBody">
<blockquote class="layui-elem-quote news_search">
    <form class="layui-form">
        <div class="layui-inline">
            <div class="layui-input-inline">
                <select name="browseLook" class="newsLook" lay-filter="browseLook">
                    <option value="">审核状态</option>
                    <option value="1">待审核</option>
                    <option value="2">已审核</option>
                    <option value="3">已拒绝</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <div class="layui-input-inline">
                <input type="text" value="" placeholder="手机号码" class="layui-input search_input" name="mobile">
            </div>
            <a class="layui-btn search_btn">查询</a>
        </div>
    </form>
</blockquote>
<div class="layui-form news_list">
    <table class="layui-table">
        <colgroup>
            <col width="50">
            <col>
            <col width="19%">
            <col width="19%">
            <col width="15%">
        </colgroup>
        <thead>
        <tr>
            <th><input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose" id="allChoose"></th>
            <th>图片</th>
            <th>姓名</th>
            <th>身份证号码</th>
            <th>状态（点击修改）</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody class="news_content">
            {volist name="data" id="vo"}
            <tr>
                <td><input type="checkbox" name="" lay-skin="primary" lay-filter="choose"></td>
                <td class="images">
                    <img src="{$vo.id_card_front|get_img_url}" alt="身份证正面">
                    <img src="{$vo.id_card_verso|get_img_url}" alt="身份证正面">
                    <img src="{$vo.id_card_in_hand|get_img_url}" alt="手持身份证照片">
                </td>
                <td>{$vo.proposer}</td>
                <td>{$vo.card_no}</td>
                <td>
                    {eq name="vo.status" value="1"}
                    <a class="layui-btn">{$vo.status|get_certification_status}</a>
                    {/eq}
                    {eq name="vo.status" value="2"}
                    <a class="layui-btn layui-btn-normal">{$vo.status|get_certification_status}</a>
                    {/eq}
                    {eq name="vo.status" value="3"}
                    <a class="layui-btn layui-btn-danger">{$vo.status|get_certification_status}</a>
                    {/eq}
                </td>
                <td class="save_field">
                    {eq name="vo.status" value="1"}
                    <a href="javascript:;" data-url="{:url('audit', ['id' => $vo['id'], 'value' => '2'])}" data-title="审核通过？" class="layui-btn layui-btn-normal">审核通过</a>
                    <a href="javascript:;" data-url="{:url('audit', ['id' => $vo['id'], 'value' => '3'])}" data-title="审核拒绝？" class="layui-btn layui-btn-danger" data-type="prompt">审核拒绝</a>
                    {/eq}
                </td>
            </tr>
            {/volist}
        </tbody>
    </table>
</div>
<div id="page"></div>
{/block}

{block name="javascript"}
{/block}